# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=orca
pkgver=42.0
pkgrel=1
pkgdesc="Orca is an extensible screen reader"
url="https://wiki.gnome.org/Projects/Orca"
arch="noarch !armhf" # missing gst-plugins-good
license="LGPL-2.1-or-later"
depends="python3 py3-gobject3 gtk+3.0 gst-plugins-good at-spi2-core
	py3-atspi py3-xdg libatk-1.0"
makedepends="intltool py3-gobject3-dev gstreamer-dev itstool
	at-spi2-core-dev"
subpackages="$pkgname-lang $pkgname-doc"
source="https://download.gnome.org/sources/orca/${pkgver%.*}/orca-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
dee0f65cd1055293d65eabb360b515763501812264440410332d7c0bf58eff63035f8fee07d61e5caed7c860cdce44ca30b187c6fc1c0417102fb577ff02e340  orca-42.0.tar.xz
"
